﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/UserSite.Master" Inherits="System.Web.Mvc.ViewPage<ArmaTuCumpleModel.Model.Servicio>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Editar
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
    <h2>
        Editar</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Campos</legend>
        <div class="editor-label">
            Tipo
        </div>
        <div class="editor-field">
            <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="LinqDataSource"
                DataTextField="nombre" DataValueField="nombre">
            </asp:DropDownList>
            <asp:LinqDataSource ID="LinqDataSource" runat="server" ContextTypeName="ArmaTuCumpleModel.Model.ArmaTuCumpleDataContext"
                EntityTypeName="" TableName="Tipo_Servicios">
            </asp:LinqDataSource>
        </div>
        <div class="editor-label">
            Precio
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.precio) %>
            <%: Html.ValidationMessageFor(model => model.precio) %>
        </div>
        <div class="editor-label">
            Descripcion
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.descripcion) %>
            <%: Html.ValidationMessageFor(model => model.descripcion) %>
        </div>
        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <a href="<%=Request.UrlReferrer.ToString()%>">Volver</a>  
    </div>
    </form>
</asp:Content>
